package com.hzd.entity;

import jodd.json.meta.JSON;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * 房东
 *
 * @author Kent
 * @date 2015/8/24.
 */
@Entity
public class Landlord extends BaseEntity {

    @Id
    private String id;

    private String name;

    private String idNo;

    private String mobileNo;

    /**
     * openid
     */
    private String openid;

    /**
     * 总套数
     */
    private Integer num;

    /**
     * 总租金
     */
    private BigDecimal rent;

    @Transient
    private String verifyCode;


    //-------------------------------- getter setter -----------------------------------

    public String getId() {
        return id;
    }

    public Landlord setId(String id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Landlord setName(String name) {
        this.name = name;
        return this;
    }

    public String getIdNo() {
        return idNo;
    }

    public Landlord setIdNo(String idNo) {
        this.idNo = idNo;
        return this;
    }

    public Integer getNum() {
        return num;
    }

    public Landlord setNum(Integer num) {
        this.num = num;
        return this;
    }

    public BigDecimal getRent() {
        return rent;
    }

    public Landlord setRent(BigDecimal rent) {
        this.rent = rent;
        return this;
    }

    public String getMobileNo() {
        return mobileNo;
    }

    public Landlord setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
        return this;
    }

    @JSON(include = false)
    public String getVerifyCode() {
        return verifyCode;
    }

    public Landlord setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public Landlord setOpenid(String openid) {
        this.openid = openid;
        return this;
    }
}
